<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/role.js"></script>
</head>
<body>

<%--工具栏--%>
<div id="user_toolbar">
    <shiro:hasPermission name="role:add">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" id="add">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="role:edit">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="edit">编辑</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="role:enable">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" id="enable">启用</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="role:disable">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" id="disable">禁用</a>
    </shiro:hasPermission>

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="reload">刷新</a>
    <input type="text" name="keyword" style="width: 200px; height: 30px;padding-left: 5px;">
    <a class="easyui-linkbutton" iconCls="icon-search" id="searchbtn">查询</a>
</div>

<%--用户列表--%>
<table id="role_data_grid"></table>


<%--用户对话框--%>
<div id="role_dialog">
    <form id="roleForm">
        <%--添加一个隐藏域--%>
        <input type="hidden" name="id">
        <table align="center" style="border-spacing: 0px 10px">
            <tr>
                <td>名称:</td>
                <td><input type="text" name="text"></td>
            </tr>
            <tr>
                <td>编号:</td>
                <td><input type="text" name="code"></td>
            </tr>
            <tr>
                <td>状态:</td>
                <td><input id="enabled" name="enabled"></td>
            </tr>
            <tr>
                <td>菜单:</td>
                <td><ul id="menu-tree"/></td>
            </tr>

        </table>
    </form>

</div>

</body>
</html>
